/****************************************************************************
*  Title: tb.sc
*  Author: Bryant Smith
*  Date: 04/16/2011
*  Description: main process for parity generator / encode 
****************************************************************************/

import "c_queue";
import "stimulus";
import "design";
import "monitor";
//import "ChMP";


const unsigned long SIZE = 1000; // 2000;

behavior Main
{
	c_queue   InQueueL((SIZE));
	c_queue   InQueueR((SIZE));
	c_queue   OutQueue((SIZE));
	c_queue   LaneOutQueue((SIZE));

	
	stimulus    s1(InQueueL, InQueueR);
	design      d1(InQueueL, InQueueR, OutQueue, LaneOutQueue);
	monitor     m1(OutQueue, LaneOutQueue);

	int main (void)
	{
		par {
			s1.main();
			d1.main();
			m1.main();
		}
		return 0;
	}
};
